/*
db table 嵌套的 struct 定义
*/

#pragma once

#include "typedef.h"
#include <string>
#include <vector>
#include <array>
#include "ProtoMarco.h"



namespace proto
{
	struct Ride //比如坐骑模块 
	{
		uint32_t id;
		std::vector<uint32_t> ids;
	};
	REFLECTION_EXTEND(Ride, id, ids);

	struct SubRide2
	{
		uint32_t id;
		std::vector<uint32_t> ids;
	};
	REFLECTION_EXTEND(SubRide2, id, ids);

	struct Ride2 //比如坐骑模块 
	{
		uint32_t id=0;
		bool isOk=false;
		uint32_t id1=0;
		uint32_t id2=0;
		SubRide2 sub;
	};
	REFLECTION_EXTEND(Ride2, id, isOk, id1, id2, sub);

	struct Player2Ride //比如坐骑模块 
	{
		uint32_t id = 0;
		std::string name;
		std::vector<Ride> rides;
	};
	REFLECTION_EXTEND(Player2Ride, id, name, rides);

	






}